			<div id="main">
				<div id="content">
					<div class="header">
						<h2>Edit Profile</h2>
					</div>
					<div class="content">
						<?php if(isset($error)): ?>
							<span style='color:red'><?=$error?></span>
						<?php endif;?>
						<?php if(isset($message)): ?>
							<span style='color:green'><?=$message?></span>
						<?php else: ?>
						<?=validation_errors()?>
						<?=form_open('account/edit_profile')?>
							<?=form_fieldset('Edit Profile')?>
								<div class="fieldset">
									<?=form_label('First Name', 'fname')?>
									<?=form_input('fname')?>
								</div>

								<div class="fieldset">
									<?=form_label('Last Name', 'lname')?>
									<?=form_input('lname')?>
								</div>

								<div class="fieldset">
									<?=form_label('Nickname', 'nickname')?>
									<?=form_input('nickname')?>
								</div>
								
								<div class="fieldset">
									<?=form_label('Birthdate', 'birthdate')?>
									<select name='day'>
									<?php foreach($days as $id =>$i): ?>
										<option value='<?=$i?>'><?=$i?></option>
									<?php endforeach;?>
									</select>
									<select name='month'>
									<?php foreach($months as $id =>$i): ?>
										<option value='<?=$i?>'><?=$i?></option>
									<?php endforeach;?>
									</select>
									<select name='year'>
									<?php foreach($years as $id =>$i): ?>
										<option value='<?=$i?>'><?=$i?></option>
									<?php endforeach;?>
									</select>
								</div>
								
								<div class="fieldset">
									<?=form_label('Country', 'country')?>
									<select name='country'>
									<?php foreach($countries as $id =>$i): ?>
										<option value='<?=$i?>'><?=$i?></option>
									<?php endforeach;?>
									</select>
								</div>
								
								<div class="fieldset">
									<?=form_label('City', 'city')?>
									<?=form_input('city')?>
								</div>
								
								<div class="buttons">
									<?=form_submit('modify', 'Modify')?>
								</div>
							<?=form_fieldset_close()?>
						<?=form_close()?>
						<?php endif;?>
						<hr />
						<a href="profile">Back to profile</a>
					</div>
					<div class="footer"></div>
				</div> 